package com.itheima.aspect;

import java.util.TimerTask;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;

//异步管理器
public class AsyncManager {
    private ScheduledExecutorService service = new ScheduledThreadPoolExecutor(50);

    public void execute(TimerTask task){
        service.execute(task);
    }
}
